#pragma once
#include "Collider.h"
#include "Vector3.h"


namespace Boon
{

	class BOON_API ColliderBox : public Collider
	{
		GAMECOMPONENT( ColliderBox, Collider )

	public:
		virtual Bounds				GetBounds() const sealed;

		inline void					SetSize( float x, float y, float z ) { m_Size = Vector3( x, y, z ); SetDirty(); }
		inline void					SetSize( const Vector3& size ){ SetSize( size.x, size.y, size.z ); }
		inline const Vector3&		GetSize() const { return m_Size; }
		virtual ColliderType		GetType() const;

	protected:
		virtual void				OnCreate();

	private:

		Vector3						m_Size;
	};

}